<script setup lang="ts">
definePageMeta({
  title:'公告详情',
  layout:'w1200'
})
const route=useRoute();
const router=useRouter();
const {data:info,refresh}= await useServerGet('/notice/getDetail',{id:route.params.id})
const goBack=()=>{
  router.back()
}
</script>

<template>
    <el-card class="mt-4">
    <el-button @click="goBack" class="mb-4" text>返回</el-button>
    <div class="text-center text-base font-600">{{info.data.title}}</div>
    <div class="text-right text-gray-400 text-xs my-2">更新时间{{info.data.updated_at}}</div>
    <div v-html="info.data.content"></div>
    </el-card>
</template>

<style scoped lang="scss">

</style>